package cn.edu.zut.score.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.edu.zut.score.core.domain.DataLogInfo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author zby
 * @since 2021-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("message")
@ApiModel("Message对象")
public class Message extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "消息类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "消息标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "消息内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "收件人ID")
    @TableField("receive_id")
    private Long receiveId;

    @ApiModelProperty(value = "是否已读 0未读 1已读")
    @TableField("is_read")
    private Integer isRead;

}
